import mongoose from "mongoose";

const usersSchema = new mongoose.Schema({
  nickName: {
    type: String,
    required: true,
  },
  avatarUrl: {
    type: String,
    required: true,
  },
  token: {
    type: String,
    required: true,
  },
  openid: {
    type: String,
    required: true,
  },
});

const Users = mongoose.model("users", usersSchema);

export default Users;
